﻿using AviewLightSource;
using FinalTestMachine.Connect;
using FinalTestMachine.Motion.IO;
using FinalTestMachine.Motion.Product;
using RM_dll2;
using System;
using System.Threading.Tasks;

namespace FinalTestMachine.Motion.Process
{
    /// <summary>
    /// 工位一测试
    /// </summary>
    public class FirstTestStation : Process_TestStationBase
    {
        public static readonly FirstTestStation Cur = new FirstTestStation();

        private FirstTestStation() : base(SiteConnectManager.Cur.GetCommunicationHelper(1), "工位一", 0)
        {
        }

        public static FirstTestStation CreateInstance()
        {
            return Cur;
        }

        public override bool AxiOrCylinderToWorkPos()
        {
            return true;
        }

        public override bool AxiOrCylinderToWaitPos()
        {
            return true;
        }

        public override bool OtherActionBeforeExit()
        {
            return true;
        }

        public override ProductTestStation GetCurrentStation()
        {
            return CurrentProduct?.GetTestStation(1);
        }

        public override ProductTestStation GetLastStation()
        {
            return null;
        }
    }
}